package org.icy.core.http;

import java.util.HashMap;
import java.util.Map;

import org.ice.http.HttpRequest;

public class IcyHttpRequest extends HttpRequestWrapper {
	
	private Map<String, String> _params = new HashMap<String, String>();

	public IcyHttpRequest(HttpRequest request) {
		super(request);
	}

	public void setParam(String name, String value) {
		_params.put(name, value);
	}
	
	public String getParam(String name) {
		if (_params.containsKey(name)) {
			return _params.get(name);
		}
		return super.getParam(name);
	}
	
	public String getParam(String name, String defaultValue) {
		if (_params.containsKey(name)) {
			return _params.get(name);
		}
		return super.getParam(name, defaultValue);
	}
}
